﻿<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog"/>
  </configSections>
  <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <targets>
      <target name="file" xsi:type="File" layout="${longdate} [${threadid}] ${level:uppercase=true} - ${message}" fileName="${basedir}/log/runtime.log" archiveFileName="${basedir}/log/runtime.log.{#}" archiveEvery="Day" archiveNumbering="Rolling" maxArchiveFiles="20" concurrentWrites="true" keepFileOpen="true" encoding="iso-8859-2"/>
      <target name="console" xsi:type="Console" layout="${longdate} [${threadid}] ${level:uppercase=true} - ${message}"/>
    </targets>
    <rules>
      <logger name="*" minlevel="Info" writeTo="file"/>
      <logger name="*" minlevel="Debug" writeTo="console"/>
    </rules>
  </nlog>
    <startup useLegacyV2RuntimeActivationPolicy="true"> 
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
    </startup>
</configuration>